package com.xwdeshj.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

/**
 * 景区——景区评论信息
 */
@Entity(name = "xw_sceinc_discussinfo")
public class XwSceincDiscussinfo {

    /**
     * 景区评论id
     */
    @Column(name = "scenic_discus_id")
    private Integer scenicDiscusId;

    /**
     * 商家加密id
     */
    @Column(name = "business_encryptId")
    private String businessEncryptid;

    /**
     * 景区加密id（店铺id）
     */
    @Column(name = "scenic_encryptId")
    private String scenicEncryptid;

    /**
     * 景区类型（游玩……）景区类型
     */
    @Column(name = "scenicTypeName")
    private String scenictypename;

    /**
     * 景区类型加密id
     */
    @Column(name = "scenicType_encryptId")
    private String scenictypeEncryptid;

    /**
     * 游客加密id
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 游客用户名
     */
    @Column(name = "scenic_discus_username")
    private String scenicDiscusUsername;

    /**
     * 评论分数
     */
    @Column(name = "scenic_discus_fraction")
    private Double scenicDiscusFraction;

    /**
     * 评论内容
     */
    @Column(name = "scenic_discus_context")
    private String scenicDiscusContext;

    /**
     * 评价印象（多个用逗号进行分隔）
     */
    @Column(name = "scenic_discus_impre")
    private String scenicDiscusImpre;

    /**
     * 评价图片
     */
    @Column(name = "scenic_discus_img")
    private String scenicDiscusImg;

    /**
     * 更新时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "scenic_discus_updatetime")
    private Date scenicDiscusUpdatetime;

    /**
     * 评论时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "scenic_discus_createtime")
    private Date scenicDiscusCreatetime;

    public XwSceincDiscussinfo(){

    }

    public XwSceincDiscussinfo(String businessEncryptid, String scenicEncryptid, String scenictypename, String scenictypeEncryptid, String userEncryptid, String scenicDiscusUsername, Double scenicDiscusFraction, String scenicDiscusContext, String scenicDiscusImpre, String scenicDiscusImg, Date scenicDiscusUpdatetime, Date scenicDiscusCreatetime) {
        this.businessEncryptid = businessEncryptid;
        this.scenicEncryptid = scenicEncryptid;
        this.scenictypename = scenictypename;
        this.scenictypeEncryptid = scenictypeEncryptid;
        this.userEncryptid = userEncryptid;
        this.scenicDiscusUsername = scenicDiscusUsername;
        this.scenicDiscusFraction = scenicDiscusFraction;
        this.scenicDiscusContext = scenicDiscusContext;
        this.scenicDiscusImpre = scenicDiscusImpre;
        this.scenicDiscusImg = scenicDiscusImg;
        this.scenicDiscusUpdatetime = scenicDiscusUpdatetime;
        this.scenicDiscusCreatetime = scenicDiscusCreatetime;
    }

    /**
     * 获取景区评论id
     *
     * @return scenic_discus_id - 景区评论id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getScenicDiscusId() {
        return scenicDiscusId;
    }

    /**
     * 设置景区评论id
     *
     * @param scenicDiscusId 景区评论id
     */
    public void setScenicDiscusId(Integer scenicDiscusId) {
        this.scenicDiscusId = scenicDiscusId;
    }

    /**
     * 获取商家加密id
     *
     * @return business_encryptId - 商家加密id
     */
    public String getBusinessEncryptid() {
        return businessEncryptid;
    }

    /**
     * 设置商家加密id
     *
     * @param businessEncryptid 商家加密id
     */
    public void setBusinessEncryptid(String businessEncryptid) {
        this.businessEncryptid = businessEncryptid;
    }

    /**
     * 获取景区加密id（店铺id）
     *
     * @return scenic_encryptId - 景区加密id（店铺id）
     */
    public String getScenicEncryptid() {
        return scenicEncryptid;
    }

    /**
     * 设置景区加密id（店铺id）
     *
     * @param scenicEncryptid 景区加密id（店铺id）
     */
    public void setScenicEncryptid(String scenicEncryptid) {
        this.scenicEncryptid = scenicEncryptid;
    }

    /**
     * 获取景区类型（游玩……）景区类型
     *
     * @return scenicTypeName - 景区类型（游玩……）景区类型
     */
    public String getScenictypename() {
        return scenictypename;
    }

    /**
     * 设置景区类型（游玩……）景区类型
     *
     * @param scenictypename 景区类型（游玩……）景区类型
     */
    public void setScenictypename(String scenictypename) {
        this.scenictypename = scenictypename;
    }

    /**
     * 获取景区类型加密id
     *
     * @return scenicType_encryptId - 景区类型加密id
     */
    public String getScenictypeEncryptid() {
        return scenictypeEncryptid;
    }

    /**
     * 设置景区类型加密id
     *
     * @param scenictypeEncryptid 景区类型加密id
     */
    public void setScenictypeEncryptid(String scenictypeEncryptid) {
        this.scenictypeEncryptid = scenictypeEncryptid;
    }

    /**
     * 获取游客加密id
     *
     * @return user_encryptId - 游客加密id
     */
    public String getUserEncryptid() {
        return userEncryptid;
    }

    /**
     * 设置游客加密id
     *
     * @param userEncryptid 游客加密id
     */
    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    /**
     * 获取游客用户名
     *
     * @return scenic_discus_username - 游客用户名
     */
    public String getScenicDiscusUsername() {
        return scenicDiscusUsername;
    }

    /**
     * 设置游客用户名
     *
     * @param scenicDiscusUsername 游客用户名
     */
    public void setScenicDiscusUsername(String scenicDiscusUsername) {
        this.scenicDiscusUsername = scenicDiscusUsername;
    }

    /**
     * 获取评论分数
     *
     * @return scenic_discus_fraction - 评论分数
     */
    public Double getScenicDiscusFraction() {
        return scenicDiscusFraction;
    }

    /**
     * 设置评论分数
     *
     * @param scenicDiscusFraction 评论分数
     */
    public void setScenicDiscusFraction(Double scenicDiscusFraction) {
        this.scenicDiscusFraction = scenicDiscusFraction;
    }

    /**
     * 获取评论内容
     *
     * @return scenic_discus_context - 评论内容
     */
    public String getScenicDiscusContext() {
        return scenicDiscusContext;
    }

    /**
     * 设置评论内容
     *
     * @param scenicDiscusContext 评论内容
     */
    public void setScenicDiscusContext(String scenicDiscusContext) {
        this.scenicDiscusContext = scenicDiscusContext;
    }

    /**
     * 获取评价印象（多个用逗号进行分隔）
     *
     * @return scenic_discus_impre - 评价印象（多个用逗号进行分隔）
     */
    public String getScenicDiscusImpre() {
        return scenicDiscusImpre;
    }

    /**
     * 设置评价印象（多个用逗号进行分隔）
     *
     * @param scenicDiscusImpre 评价印象（多个用逗号进行分隔）
     */
    public void setScenicDiscusImpre(String scenicDiscusImpre) {
        this.scenicDiscusImpre = scenicDiscusImpre;
    }

    /**
     * 获取评价图片
     *
     * @return scenic_discus_img - 评价图片
     */
    public String getScenicDiscusImg() {
        return scenicDiscusImg;
    }

    /**
     * 设置评价图片
     *
     * @param scenicDiscusImg 评价图片
     */
    public void setScenicDiscusImg(String scenicDiscusImg) {
        this.scenicDiscusImg = scenicDiscusImg;
    }

    /**
     * 获取更新时间
     *
     * @return scenic_discus_updatetime - 更新时间
     */
    public Date getScenicDiscusUpdatetime() {
        return scenicDiscusUpdatetime;
    }

    /**
     * 设置更新时间
     *
     * @param scenicDiscusUpdatetime 更新时间
     */
    public void setScenicDiscusUpdatetime(Date scenicDiscusUpdatetime) {
        this.scenicDiscusUpdatetime = scenicDiscusUpdatetime;
    }

    /**
     * 获取评价时间
     *
     * @return scenic_discus_createtime - 评价时间
     */
    public Date getScenicDiscusCreatetime() {
        return scenicDiscusCreatetime;
    }

    /**
     * 设置评价时间
     *
     * @param scenicDiscusCreatetime 评价时间
     */
    public void setScenicDiscusCreatetime(Date scenicDiscusCreatetime) {
        this.scenicDiscusCreatetime = scenicDiscusCreatetime;
    }

    @Override
    public String toString() {
        return "XwSceincDiscussinfo{" +
                "scenicDiscusId=" + scenicDiscusId +
                ", businessEncryptid='" + businessEncryptid + '\'' +
                ", scenicEncryptid='" + scenicEncryptid + '\'' +
                ", scenictypename='" + scenictypename + '\'' +
                ", scenictypeEncryptid='" + scenictypeEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", scenicDiscusUsername='" + scenicDiscusUsername + '\'' +
                ", scenicDiscusFraction=" + scenicDiscusFraction +
                ", scenicDiscusContext='" + scenicDiscusContext + '\'' +
                ", scenicDiscusImpre='" + scenicDiscusImpre + '\'' +
                ", scenicDiscusImg='" + scenicDiscusImg + '\'' +
                ", scenicDiscusUpdatetime=" + scenicDiscusUpdatetime +
                ", scenicDiscusCreatetime=" + scenicDiscusCreatetime +
                '}';
    }
}